-- GENERATED SPELL FOR [Skadir Runecaster] --


function spell0_25520(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25520', 3000, 1)
end

function spell1_25520(pUnit, Event) --@Rune of Retribution,Self--
pUnit:FullCastSpellOnTarget(49871,pUnit)
pUnit:RegisterEvent('Sorts_25520', 624, 1)
end

function Sorts_25520(pUnit, Event)
local choix_sorts_25520 = math.random(0, 1)
if choix_sorts_25520 == 0 then
pUnit:RegisterEvent('spell0_25520', 1, 1)
end
if choix_sorts_25520 == 1 then
pUnit:RegisterEvent('spell1_25520', 1, 1)
end
end

function mob25520_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25520', math.random(1500, 3000), 1)
end

function mob25520_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25520_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25520_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25520, 1, 'mob25520_Action')
RegisterUnitEvent(25520, 2, 'mob25520_Leave')
RegisterUnitEvent(25520, 3, 'mob25520_Kill')
RegisterUnitEvent(25520, 4, 'mob25520_Die')
